package com.itwenke.springbootdemo.shirowebbootjwt.service.impl;

import com.itwenke.springbootdemo.shirowebbootjwt.entity.Role;
import com.itwenke.springbootdemo.shirowebbootjwt.mapper.RoleMapper;
import com.itwenke.springbootdemo.shirowebbootjwt.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;


    @Override
    public Set<Role> findRolesByUid(Long uid) {
        return roleMapper.findRolesByUid(uid);
    }
}
